package cn.gson.school.entity.jiuye;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.gson.school.entity.jiaoxue.StudentEntity;

/**
 * 面试记录表
 * 
 * @author 华少
 *
 */
@Entity
@Table(name = "tb_jy_interview_record")
public class InterviewRecordEntity {
	/**
	 * interview_id 面试记录编号 studentinfo_id 学生详情id interview_company 面试公司
	 * interview_address 面试地点 interview_time 面试时间 interview_plan 面试预案
	 * interview_success 是否成功 upload_time 上传时间
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "interview_id")
	private Long interviewId;

	@ManyToOne
	@JoinColumn(name = "studentinfo_id")
	private StudentEntity studentinfoId;

	@Column(name = "interview_company")
	private String interviewCompany;

	@Column(name = "interview_address")
	private String interviewAddress;

	@Column(name = "interview_time")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Date interviewTime;

	@Column(name = "interview_plan")
	private String interviewPlan;

	@Column(name = "interview_success")
	private Integer interviewSuccess;
	
	/**
	 * 添加时间
	 */
	@Column(name = "upload_time")
	@JsonFormat(pattern="yyyy-MM-ddHH:mm:ss")
	private Timestamp uploadTime;


	public Long getInterviewId() {
		return interviewId;
	}

	public void setInterviewId(Long interviewId) {
		this.interviewId = interviewId;
	}

	public StudentEntity getStudentinfoId() {
		return studentinfoId;
	}

	public void setStudentinfoId(StudentEntity studentinfoId) {
		this.studentinfoId = studentinfoId;
	}

	public String getInterviewCompany() {
		return interviewCompany;
	}

	public void setInterviewCompany(String interviewCompany) {
		this.interviewCompany = interviewCompany;
	}

	public String getInterviewAddress() {
		return interviewAddress;
	}

	public void setInterviewAddress(String interviewAddress) {
		this.interviewAddress = interviewAddress;
	}

	public Date getInterviewTime() {
		return interviewTime;
	}

	public void setInterviewTime(Date interviewTime) {
		this.interviewTime = interviewTime;
	}

	public String getInterviewPlan() {
		return interviewPlan;
	}

	public void setInterviewPlan(String interviewPlan) {
		this.interviewPlan = interviewPlan;
	}

	public Integer getInterviewSuccess() {
		return interviewSuccess;
	}

	public void setInterviewSuccess(Integer interviewSuccess) {
		this.interviewSuccess = interviewSuccess;
	}

	public Timestamp getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(Timestamp uploadTime) {
		this.uploadTime = uploadTime;
	}

	@Override
	public String toString() {
		return "InterviewRecordEntity [interviewId=" + interviewId + ", studentinfoId=" + studentinfoId
				+ ", interviewCompany=" + interviewCompany + ", interviewAddress=" + interviewAddress
				+ ", interviewTime=" + interviewTime + ", interviewPlan=" + interviewPlan + ", interviewSuccess="
				+ interviewSuccess + ", uploadTime=" + uploadTime + "]";
	}
}
